package com.uinnova.product.eam.local;

public class ArchReviewRotaContext {

    private static ThreadLocal<ArchReviewRotaContextValue> context = new ThreadLocal<>();

    public static ArchReviewRotaContextValue getContext(){
        return context.get();
    }

    public static void setContext(ArchReviewRotaContextValue contextValue){
        context.set(contextValue);
    }

    public static void release() {
        context.remove();
    }

    public static void init() {
        ArchReviewRotaContextValue contextValue = new ArchReviewRotaContextValue();
        setContext(contextValue);
    }
}